package org.vincen.client;

import org.apache.cxf.endpoint.Client;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;

public class Client2 {

	public static void main(String[] args) {
		JaxWsDynamicClientFactory factory = JaxWsDynamicClientFactory.newInstance();
		Client client = factory.createClient("http://localhost:8080/firstcxf/services/HelloWorld?wsdl");
		Object[] os = null;
		try {
			os = client.invoke("sayHi", "La Paz");
		} catch (Exception e) {
			e.printStackTrace();
		}
		System.out.println("say Hi Response : " + os[0]);
	}

}
